package com.program.beautymakeup.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;

/**
 * @author CaiKe
 * @date 2023/2/7 20:24
 */
@Data
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer userId;

    private String username;

    @JsonIgnore
    private String password;

    // 0-ROOT； 1-一级管理； 2-二级管理
    private Integer role;

    private String realname;

    private String avatar;

    private String signature;

    private String mobile;

    private String wx;

    private String content;
//
//    // ============== NOT IN DB =======
//    @JsonIgnore
//    @Builder.Default
//    private Boolean isLogin = false;
}